package com.micro.modual.extension;

import com.micro.common.MicroConstant;
import com.micro.common.biz.GeneratorCodeUtil;
import com.micro.common.util.SnowFlakeUtil;
import com.micro.modual.entity.AssembleConfig;
import com.micro.modual.model.bo.assembleconfig.AssembleConfigBO;

/**
 * <h1>拼团配置表 延展类</h1>
 * @author LevelCoder
 * @version V1.0.0
 * @email LevelCoder@126.com
 * @date 2020-08-04 00:23:27
 */
public class AssembleConfigExtension {

    /**
     * <h2>转换: 拼团配置表 新增</h2>
     * @param assembleConfigBO {@link AssembleConfigBO} 拼团配置表 新增/修改 请求对象
     * @return {@link AssembleConfig} 拼团配置表
     */
    public static AssembleConfig converAddAssembleConfig(AssembleConfigBO assembleConfigBO) {
        AssembleConfig assembleConfig = new AssembleConfig();
        assembleConfig.setId(SnowFlakeUtil.getId());
                                    return assembleConfig;
    }

    /**
     * <h2>转换: 拼团配置表 修改</h2>
     * @param assembleConfigBO {@link AssembleConfigBO} 拼团配置表 新增/修改 请求对象
     * @return {@link AssembleConfig} 拼团配置表
     */
    public static AssembleConfig converEditAssembleConfig(AssembleConfigBO assembleConfigBO) {
        AssembleConfig assembleConfig = new AssembleConfig();
        assembleConfig.setId(assembleConfigBO.getId());
                                    return assembleConfig;
    }
}
